<html>
<head>
<meta charset="UTF-8">
<title>测试</title>
</head>
<body>
<table border="10">
    <tr>
        <th>策略</th>
        <th>股票号</th>
        <th>股票名</th>
        <th>操作</th>
        <th>条件</th>
    </tr>
    {% for item in today_records%}
    <tr>
        <td>{{ item["strategy"] }}</td>
        <td>{{ item["ts_code"] }}</td>
        <td>{{ item["name"] }}</td>
        <td>{{ "买入" if item["orient"] == 1 else "卖出" }}</td>
        <td>{{ item["condition"] }}</td>
    </tr>
    {% endfor %}
</table>

</body>
</html>
